<?php
class TypeJob extends Jobtype{
    static function getname($id){
        $name = Jobtype::model()->findByPk($id);
        return $name->name;
    }
}

?>